import { Router } from 'express'
import UserController from './UserController'

const router = Router()

router.post('/users', UserController.createUser)
router.get('/users', UserController.getAllUsers)
router.get('/users/:id', UserController.getUser)
router.get('/users/:id', UserController.updateUser)
router.delete('/users/:id', UserController.deleteUser)
router.post('/login', UserController.login)
export default router
